Range: Fix inverted horizontal scroll wheel events
authorDaniel Boles <dboles@src.gnome.org>
Sat, 14 Oct 2017 17:45:20 +0000 (18:45 +0100)
committerDaniel Boles <dboles.src@gmail.com>
Sat, 14 Oct 2017 17:56:32 +0000 (18:56 +0100)
commit29b8cfc95250f31570f39a0d14688a8ba21c505d
tree83d5f50b00ec5a3e6fbdeee1f5e69fe280301473
parentd2f027a9d96cbcfed1aceebe11b442fdab7fd1d6
Range: Fix inverted horizontal scroll wheel events

Bug 737175 aimed to ensure that scrolling up on a horizontal range would
result in its value increasing, as that’s what users intuitively expect.
However, its commit 416c370da1d2eff2458e4a0c5b8e504cd8061559 meant that,
if the event gives scroll deltas, we inverted our delta unconditionally.

So it broke horizontal scrolling: scrolling left moved the slider right…

We must only invert if using dy as delta. dx already has the right sign,
so inverting it was wrong.

https://bugzilla.gnome.org/show_bug.cgi?id=788905
gtk/gtkrange.c